<?php
class SnapshotController extends BaseController
{
    public function actionIndex()
    {
        // get queue data
        $userId = FacebookUtility::getUserId();
        $targets = SnapshotUtility::getTargets($userId, 0, CONST_SNAPSHOT_QUEUE_MAX_ITEM);

        // render
        $js = array('libs/queue.js', 'libs/jquery-ajax-queue.min.js');
        $params = array('targets' => $targets);
        $this->render('index', $params, $js);
    }
}